import {WeaTools} from 'ecCom'

// 项目类型-树形
export const getPrjTypeTreePageList = params => {
	return WeaTools.callApi('/api/proj/pcproject/getPrjTypeTree', 'GET', params);
}

// 根据项目类型,查询项目,分页显示
export const getPrjByTypeId = params => {
	return WeaTools.callApi('/api/proj/prjboard/getListByTypeIdForBoard', 'GET', params);
}

export const getPrjInfoForBoard = params => {
	return WeaTools.callApi('/api/proj/prjboard/getProjectInfo', 'GET', params);
}

//看板显示
export const getKanbanView = params => {
	return WeaTools.callApi('/api/proj/prjboard/getPrjBoardView', 'GET', params);
}
//看板新增阶段
export const addBoardStage = params => {
	return WeaTools.callApi('/api/proj/prjboard/addBoardStage', 'GET', params);
}
//编辑阶段
export const editBoardStage = params => {
	return WeaTools.callApi('/api/proj/prjboard/editBoardStage', 'GET', params);
}
//删除阶段
export const delBoardStage = params => {
	return WeaTools.callApi('/api/proj/prjboard/delBoardStage', 'GET', params);
}
//看板拖动
export const doMovePrjBoard = params => {
	return WeaTools.callApi('/api/proj/prjboard/doMovePrjBoard', 'GET', params);
}
//看板新增任务
export const addBoardTask = params => {
	return WeaTools.callApi('/api/proj/prjboard/addBoardTask', 'GET', params);
}
//查询任务卡片
export const getTaskInfo = params => {
	return WeaTools.callApi('/api/proj/prjboard/getTaskInfo', 'GET', params);
}
//查询项目Tab
export const getPrjTabs = params => {
	return WeaTools.callApi('/api/proj/prjboard/getProjectTabs', 'GET', params);
}
//设置里程碑任务
export const setLandMark = params => {
	return WeaTools.callApi('/api/proj/prjboard/setLanMark', 'GET', params);
}
//保存任务排序
export const saveItemOrder = params => {
	return WeaTools.callApi('/api/proj/prjboard/saveItemOrder', 'GET', params);
}
//保存阶段排序
export const saveGroupOrder = params => {
	return WeaTools.callApi('/api/proj/prjboard/saveGroupOrder', 'GET', params);
}
	